Sortwell™ User Guide

Sortwell sorts a folder of scans into one folder per batch, using batch cards. It is made for the Easy Index Workflow: before each group of photos you scan (or capture on a copy stand) a colored card that says the batch's date, its number and its subject. Sortwell finds every card, reads what it says, makes a folder named from it, and moves the card and the photos after it, up to the next card, into that folder.

One folder of scans                      After Sortwell
  Scan-001  (batch card)               1982-10-31-Halloween-0001
  Scan-002 ... Scan-004               Scan-001 (the card), Scan-002 ... Scan-004
  Scan-005  (batch card)               1997-12-25-Christmas-0002
  Scan-006 ... Scan-007               Scan-005, Scan-006, Scan-007

Sortwell comes two ways, with one license for both:

Nothing moves until you have checked what each card says and clicked Sort into folders, and every run can be undone.

The review screen also shows the folder the batch folders go in, with a button to change it, and a Copy, rather than move tick box: tick it to copy the photos into the batch folders and leave the originals where they are.

Making batch cards Sortwell can read

Reading hard handwriting online (optional)

For cards this computer can't read well, Sortwell can also ask an online service: Claude (Anthropic), OpenAI or Google Gemini, with your own API key, so what it costs goes on your own account (usually a fraction of a cent per card). Only the batch cards are sent, never your photos.

Getting an API key

An API key is a long password that lets Sortwell use your account with the service. A chat subscription such as Claude Pro or ChatGPT Plus does not include one: the key comes from the service's developer site, which has its own sign-in and its own pay-as-you-go billing. You only need one key, from one service, and if you already saved one in Labelwell or Datewell, Sortwell uses it too. The sites change their menus from time to time, so a button may be worded a little differently from what is written here.

Which one to choose

Claude (Anthropic)

  1. Go to console.anthropic.com and sign up (or sign in) with your email or Google account. This is a separate account from a claude.ai chat subscription, though it can use the same email.
  2. Open Settings > Billing and click Buy credits. Add a small amount; $5 is the least you can add and lasts a long time for reading cards. Reading online won't work until the account has credit.
  3. Open Settings > API keys and click Create key. Give it a name you'll recognize, such as Sortwell.
  4. Click Copy and paste the key into Sortwell straight away (it starts with sk-ant-). The site shows the key only once; if you lose it, delete it there and create a new one.

Google Gemini

  1. Go to aistudio.google.com and sign in with your Google account. The first time, accept the terms. A work or school Google account may not be allowed to make keys; a personal Gmail account works.
  2. Click Get API key (or go straight to aistudio.google.com/apikey), then Create API key. If it asks about a project, choose to create it in a new project.
  3. Copy the key (it starts with AIza) and paste it into Sortwell.
  4. The free key has daily limits, about a thousand or so readings a day, which is plenty for most jobs. To lift the limits and keep your cards out of Google's product improvement, turn on billing for the key's project in AI Studio.

OpenAI

  1. Go to platform.openai.com and sign up (or sign in). This is separate from a ChatGPT subscription.
  2. Open Settings > Billing and add credit; $5 is the usual least amount.
  3. Open API keys (platform.openai.com/api-keys) and click Create new secret key. Give it a name such as Sortwell.
  4. Copy the key (it starts with sk-) and paste it into Sortwell straight away; it is shown only once.

Keeping your key safe

Treat the key like a password: don't email it, post it or put it in a screenshot. Sortwell keeps it on this computer only. If you think someone else has seen it, delete it on the service's site, create a new one, and paste the new one into Sortwell. The service's own billing page shows what you have spent, and you can set a spending limit there.

In Lightroom Classic

  1. In the Folders panel, click the folder of scans (or select the photos to sort).
  2. Library > Plug-in Extras > Sort batch cards into folders.
  3. Check the settings (see below) and click Find the cards. Sortwell reads each card from its own file (for camera raw files, the preview inside it), or from Lightroom's preview if the file can't be opened.
  4. The review shows each card, what Sortwell read on it, and the folder it will make. Fix any date, number or subject that was misread; the folder name changes as you type. Untick a "card" that isn't one: its photos then stay with the batch before it.
  5. Click Sort into folders.

Sortwell moves the files (and their .xmp sidecars) on disk, adds them to the catalog at their new places, and puts back what the catalog knew about each photo: its pick or reject flag, stars, keywords, title, caption and the other IPTC fields, GPS location, its Develop settings (edits, crop and rotation) and the collections it is in. Then it removes the old entries, so the Folders panel shows the batch folders with their photos. (With Copy, rather than move, the originals stay in the catalog as they were, and the copies are added with the same catalog data.)

Afterwards Sortwell opens the folder the batch folders went in. If that folder isn't in the catalog's Folders panel yet, the batch folders show at the top level instead: right-click one of them > Show Parent Folder to see them inside it. (Lightroom doesn't let plug-ins add a folder that has no photos in it.)

What can't be carried over, because Lightroom doesn't let plug-ins set it: virtual copies, stacks, Develop snapshots and the history list, links to publish services, and other plug-ins' fields. Sortwell tells you before anything moves if any of the photos have these. Tethered captures and fresh scans usually have none of them.

On Lightroom Classic older than 14.3, Sortwell can't remove the old entries itself, and they show as missing photos in the scan folder. Right-click the folder > Synchronize Folder and tick "Remove missing photos from catalog" to clear them.

The cards get the keyword Sortwell > Batch card, so you can find them all in the Keyword List. Like all keywords our plug-ins add, it is never exported with your photos.

A card Sortwell misses, or a photo it takes for a card

Select the photo, then Library > Plug-in Extras > Mark as a batch card or Not a batch card, and run Sortwell again. Clear the batch card marking takes the mark off.

The Sortwell app

  1. Start Sortwell (Windows: Start menu > Sortwell; Mac: Applications > ThePictureOrg > Sortwell). It opens in your web browser and works only on this computer.
  2. Click Choose and pick the folder of scans, or type or paste its path in the box.
  3. Check the settings on the left and click Find the cards.
  4. Check each card's date, number and subject, as above, then click Sort into folders.
  5. Show the folders opens the folder they went into.

The app reads JPEG, TIFF, PNG and camera raw files (for raw files it uses the preview picture inside the file).

To bring the sorted folders into Lightroom Classic afterwards, import the folder the batches went into as usual, with "Include Subfolders" on.

Settings

Setting What it does
Finding the batch cards Cards with the designator graphic (the usual way): a photo with the card designator on it is a card, whatever its color. The first photo is a card: for cards without a designator; Sortwell learns the cards' color from the first photo and finds the others of that color. Cards of any color: any photo that is mostly one solid color counts as a card.
Designator Empty for the built-in one (the circle with two black quarters). To use a mark of your own, click Choose and pick a picture of it: dark on white (or on a transparent background), cropped close around the mark. Type or paste its path if you like. Built-in goes back to the circle.
Color match For the two ways without a designator. Normal suits most cards. Loose for faded or unevenly lit cards; Strict if photos with a big patch of a similar color are taken for cards.
Photo order File name (Scan-001, Scan-002 …, numbers in order, so 2 comes before 10) or Capture time (in the app: Date modified).
Dates like 6/7/87 Month first (US: June 7) or Day first (6 July). A date like 21/6/87 is read correctly either way, since 21 can't be a month.
Batch numbers As written (7), three digits (007) or four digits (0007, the default), so the folders sort in order.
Folder names The pattern for the folder names. {date}, {batch} and {description} (the subject) are replaced by what the card says; a part the card doesn't have is left out with the text around it. The default is {date}-{description}-{batch}, for example "1982-10-31-Halloween-0001".
Where the batch folders go Inside the scan folder, next to it, or in a folder you choose (type or paste a path, or click Choose).

Finishing the batch folders

When a batch's photos are in order, Finish the batch folders makes each batch folder final:

The date and the keyword are written into each photo (for camera raw files, into the .xmp sidecar beside it), so other programs see them too. Batch cards still in a folder keep their names and are left out of the numbering.

A preview shows every folder's new name, date and keyword, and the first and last new file names, before anything changes. Undo a Sortwell run puts the names, folders, dates and keywords back.

When you're done with the batches: deleting the cards

When you have finished with the batches (captions, rotation and so on), the cards can go.

Undo

Each run keeps a small undo file in your PictureOrg folder, "Sortwell-undo". A file that was moved or renamed after the run is left where it is, and the undo says so.

Updates

Updates within the major version are complimentary.

License and free trial

Help

Sortwell reads the cards with RapidOCR and finds them with OpenCV (and, only if you set it up, the online service you chose). See NOTICE.txt.

© 2026 The Picture Org LLC · thepictureorg.com